-- GENERATED SPELL FOR [Phantasmal Possessor] --


function spell0_18503(pUnit, Event) --@Possess,n/a--
pUnit:FullCastSpellOnTarget(33401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18503', 6000, 1)
end

function Sorts_18503(pUnit, Event)
local choix_sorts_18503 = math.random(0, 0)
if choix_sorts_18503 == 0 then
pUnit:RegisterEvent('spell0_18503', 1, 1)
end
end

function mob18503_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18503', math.random(1500, 3000), 1)
end

function mob18503_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18503_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18503_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18503, 1, 'mob18503_Action')
RegisterUnitEvent(18503, 2, 'mob18503_Leave')
RegisterUnitEvent(18503, 3, 'mob18503_Kill')
RegisterUnitEvent(18503, 4, 'mob18503_Die')
